<template>
  <div class="about">
    <h1>This is an about page</h1>
    <button v-on:click="ajax_get">ok</button>
  </div>
</template>

<script>
export default {
    name: 'about',
    methods: {
        ajax_get: function(event) {
            console.log('ajax 请求')
            this.axios({
                // url: 'http://music.163.com/api/playlist/detail?id=19723756'
                url: 'api/playlist/detail?id=19723756'
            }).then(
                function(res) {
                    console.log('ddddd')
                    console.log('JSON=> %j', res)
                },
                function(error) {
                    console.log(error)
                }
            )
        }
    }
}
</script>
